package com.anXin.article.service;

import com.anXin.model.article.dtos.ArticleDto;
import com.anXin.model.article.pojos.Article;
import com.anXin.model.article.pojos.ArticleChannel;
import com.anXin.model.common.dtos.ResponseResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface ArticleService extends IService<Article> {
    ResponseResult<List<Article>> selectAllArticle();

    ResponseResult<List<Article>> selectArticleByChannel(Long id);

    void DeleteById(Long id);

    void deleteArticleById(Long id);


    public ResponseResult saveArticle(Article article);

    ResponseResult<List<ArticleChannel>> selectChannel();

    ResponseResult<List<Article>> selectMyArticle();

    ResponseResult<List<Article>> selectMyArticleToBeReviewed();

    ResponseResult<List<Article>> selectMyArticleByAudited();

    ResponseResult<List<Article>> selectMyArticleByUnPublish();

    ResponseResult<List<Article>> selectMyArticleByReleased();
}
